package com.turing.post.cardmanagement.util;

import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 实体卡制卡入库单
 * 
 * @author ys
 * @date 2012-12-17
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "InitialInStockOrder")
public class InitialInStockOrder implements Serializable {

	public InitialInStockOrder() {
		super();
	}

	/**
	 * 制卡入库单ID
	 */
	private BigInteger InitialInStockOrderId;
	/**
	 * 发卡商机构
	 */
	private String IssueBranchNo;
	/**
	 * 入库时间
	 */
	private Date InStockTime;
	/**
	 * 制卡批次号
	 */
	private String BatchNo;
	/**
	 * 起始序号
	 */
	private String CardStartSeqNo;
	/**
	 * 终止序号
	 */
	private String CardEndSeqNo;
	/**
	 * 起始卡号
	 */
	private String StartCardNo;
	/**
	 * 终止卡号
	 */
	private String EndCardNo;
	/**
	 * 入库张数
	 */
	private Integer InStockCount;
	/**
	 * 操作员号
	 */
	private BigInteger operId;
	/**
	 * 取消入库时间
	 */
	private Date CancelInStockTime;

	private Date authTime;// 审核时间 Date Null

	private BigInteger authOperId;// 审核人Id Int Null

	/**
	 * 入库单单号
	 */
	private String orderNumber;
	/**
	 * 状态
	 */
	private String Status;
	 /**
	 * 0 – 入库待审
	 */
	 public final static String InStockOrder_Status_InputWait = "0";

	/**
	 * 1 – 入库
	 */
	public final static String InStockOrder_Status_Input = "1";

	 /**
	 * 2 - 入库撤销待审
	 */
	 public final static String InStockOrder_Status_OutWait = "2";

	/**
	 * 3 –撤销入库
	 */
	public final static String InStockOrder_Status_Out = "3";
	
	/**
	 * 5 –待审核
	 */
	public final static String InStockOrder_Status_Wait = "5";

	/**
	 * 样卡正面图片
	 */
	private BigInteger CardFaceId;
	/**
	 * 样卡背面图片
	 */
	private BigInteger CardBackFaceId;

	/**
	 * 备注
	 */
	private String Remark;

	@Id
	@Column(name = "INITIALINSTOCKORDERID", nullable = false)
	public BigInteger getInitialInStockOrderId() {
		return InitialInStockOrderId;
	}

	public void setInitialInStockOrderId(BigInteger initialInStockOrderId) {
		InitialInStockOrderId = initialInStockOrderId;
	}

	@Column(name = "ISSUEBRANCHNO", nullable = false)
	public String getIssueBranchNo() {
		return IssueBranchNo;
	}

	public void setIssueBranchNo(String issueBranchNo) {
		IssueBranchNo = issueBranchNo;
	}

	@Column(name = "INSTOCKTIME", nullable = false)
	public Date getInStockTime() {
		return InStockTime;
	}

	public void setInStockTime(Date inStockTime) {
		InStockTime = inStockTime;
	}

	@Column(name = "BATCHNO", nullable = false)
	public String getBatchNo() {
		return BatchNo;
	}

	public void setBatchNo(String batchNo) {
		BatchNo = batchNo;
	}

	@Column(name = "CARDSTARTSEQNO", nullable = false)
	public String getCardStartSeqNo() {
		return CardStartSeqNo;
	}

	public void setCardStartSeqNo(String cardStartSeqNo) {
		CardStartSeqNo = cardStartSeqNo;
	}

	@Column(name = "CARDENDSEQNO", nullable = false)
	public String getCardEndSeqNo() {
		return CardEndSeqNo;
	}

	public void setCardEndSeqNo(String cardEndSeqNo) {
		CardEndSeqNo = cardEndSeqNo;
	}

	@Column(name = "STARTCARDNO", nullable = false)
	public String getStartCardNo() {
		return StartCardNo;
	}

	public void setStartCardNo(String startCardNo) {
		StartCardNo = startCardNo;
	}

	@Column(name = "ENDCARDNO", nullable = false)
	public String getEndCardNo() {
		return EndCardNo;
	}

	public void setEndCardNo(String endCardNo) {
		EndCardNo = endCardNo;
	}

	@Column(name = "INSTOCKCOUNT", nullable = false)
	public Integer getInStockCount() {
		return InStockCount;
	}

	public void setInStockCount(Integer inStockCount) {
		InStockCount = inStockCount;
	}

	@Column(name = "operId", nullable = false)
	public BigInteger getOperId() {
		return operId;
	}

	public void setOperId(BigInteger operId) {
		this.operId = operId;
	}

	@Column(name = "CANCELINSTOCKTIME", nullable = true)
	public Date getCancelInStockTime() {
		return CancelInStockTime;
	}

	public void setCancelInStockTime(Date cancelInStockTime) {
		CancelInStockTime = cancelInStockTime;
	}

	@Column(name = "STATUS", nullable = false)
	public String getStatus() {
		return Status;
	}

	public void setStatus(String status) {
		Status = status;
	}

	@Column(name = "authTime")
	public Date getAuthTime() {
		return authTime;
	}

	public void setAuthTime(Date authTime) {
		this.authTime = authTime;
	}

	@Column(name = "authOperId")
	public BigInteger getAuthOperId() {
		return authOperId;
	}

	public void setAuthOperId(BigInteger authOperId) {
		this.authOperId = authOperId;
	}

	@Column(name = "CARDFACEID", nullable = true)
	public BigInteger getCardFaceId() {
		return CardFaceId;
	}

	public void setCardFaceId(BigInteger cardFaceId) {
		CardFaceId = cardFaceId;
	}

	@Column(name = "CARDBACKFACEID", nullable = true)
	public BigInteger getCardBackFaceId() {
		return CardBackFaceId;
	}

	public void setCardBackFaceId(BigInteger cardBackFaceId) {
		CardBackFaceId = cardBackFaceId;
	}

	@Column(name = "REMARK", nullable = true)
	public String getRemark() {
		return Remark;
	}

	public void setRemark(String remark) {
		Remark = remark;
	}

	@Column(name = "orderNumber")
	public String getOrderNumber() {
		return orderNumber;
	}

	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}
}
